<?php

use Illuminate\Routing\Router;


Route::group([
    'prefix' => 'admin/topic',
    'namespace' => 'Beerus\\Modules\\Topic\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {

    //好物专题
    $router->get('/goodsTopic/index', 'NiceGoodsTopicController@index')->name('nicegoodstopic.list');
    $router->get('/goodsTopic/index/create', 'NiceGoodsTopicController@firstCreate');
    $router->get('/goodsTopic/index/{id}/edit', 'NiceGoodsTopicController@firstCreate');
    $router->post('/goodsTopic/index/create', 'NiceGoodsTopicController@firstSave')->name('nicegoodstopic.save');
    $router->post('/goodsTopic/index/act', 'NiceGoodsTopicController@act')->name('nicegoodstopic.act');

    $router->get('/secondTopic/index/{f_id}', 'NiceGoodsTopicController@secondIndex')->name('secondIndex.list');
    $router->get('/secondTopic/index/{f_id}/create', 'NiceGoodsTopicController@secondCreate');
    $router->get('/secondTopic/index/{f_id}/{id}/edit', 'NiceGoodsTopicController@secondCreate');
    $router->post('/secondTopic/index/create', 'NiceGoodsTopicController@secondSave')->name('secondIndex.save');
    $router->post('/secondTopic/index/act', 'NiceGoodsTopicController@actSec')->name('secondIndex.act');


    $router->get('/goodsList/index/{r_id}', 'NiceGoodsTopicController@goodsIndex')->name('goodsIndex.list');
    $router->get('/goodsList/index/{r_id}/create', 'NiceGoodsTopicController@goodsCreate');
    $router->get('/goodsList/index/{r_id}/{id}/edit', 'NiceGoodsTopicController@goodsCreate');
    $router->post('/goodsList/index/create', 'NiceGoodsTopicController@goodsSave')->name('goodsIndex.save');
    $router->post('/goodsList/index/act', 'NiceGoodsTopicController@actGoods')->name('goodsIndex.act');
    $router->post('/goodsList/index/sort', 'NiceGoodsTopicController@sort');
});